/***************************************************************************
 * 
 * Copyright (c) 2012 Baidu.com, Inc. All Rights Reserved
 * common.h,v 1.0 2012-08-17 11:30 yelu01 
 * 
 **************************************************************************/
 
 
 
/**
 * @file hash_func.h
 * @author yelu01(yelu01@baidu.com)
 * @date 2012-08-17 11:30
 * @version 1.0 
 * @brief murmur_hash.
 *  
 **/

#pragma once

#include <stdint.h>

// 64-bit hash for 64-bit platforms, MurmurHash2, 64-bit versions, by Austin 
// Appleby. Beware of alignment and endian-ness issues if used across multiple
// platforms.
uint64_t murmur_hash_64A( const void * key, int len, unsigned int seed );

// 64-bit hash for 32-bit platforms, MurmurHash2, 64-bit versions, by Austin 
// Appleby. Beware of alignment and endian-ness issues if used across multiple
// platforms.
uint64_t murmur_hash_64B( const void * key, int len, unsigned int seed );


